App.require(function () {
    var app = App.getCurrent();

    app.definePopUp("strpagedialog", {
        beforeShow: function () {
            if (this.data.pagename) {
                if (document.activeElement) document.activeElement.blur();
                this.currentName = this.data.pagename;
                delete this.data.pagename;
                return true;
            }
        }
    })
});